angular.module('fantasyModule', [])
    .directive('appFantasy', ['$location', function ($location) {
        return {
            restrict: 'AE',
            replace: true,
            scope: {
                data: '=attrData',
                imgClick: '&linkFn'
            },
            templateUrl: './src/view/template/app-fantasy.html',
            // link: function (scope, element, attr) {
            //     scope.imgClick = function (id) {
            //         console.log(id);
            //         $location.path('/home').search({'id': id});
            //     }
            // }
        }
    }]);